package com.cangmaomao.lib.utils;

/**
 * Author:帅气的potato
 */

public class ColorUtils {

    public static int[] changeArgb(int color) {
        int[] agb = new int[4];
        int alpha = (color & 0xff000000) >>> 24;
        int red = (color & 0x00ff0000) >> 16;
        int green = (color & 0x0000ff00) >> 8;
        int blue = (color & 0x000000ff);
        agb[0] = alpha;
        agb[1] = red;
        agb[2] = green;
        agb[3] = blue;
        return agb;
    }

}
